package cn.chenxing.module.trajectory.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户轨迹数据表
 * </p>
 *
 * @author maogen.yang
 * @since 2020-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("venus_track_data")
public class VenusTrackDataEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文件ID（对应轨迹文件）
     */
    private Integer fileId;

    /**
     * 数据用户ID
     */
    private Integer dataId;

    /**
     * 距离
     */
    private Double distance;

    /**
     * 最小经度
     */
    private Double longitudeMin;

    /**
     * 最大经度
     */
    private Double longitudeMax;

    /**
     * 最小纬度
     */
    private Double latitudeMin;

    /**
     * 最大纬度
     */
    private Double latitudeMax;

    /**
     * 平均误差
     */
    private Double averageError;

    /**
     * 压缩率
     */
    private Double compressRate;


    public static final String ID = "id";

    public static final String FILE_ID = "file_id";

    public static final String DATA_ID = "data_id";

    public static final String DISTANCE = "distance";

    public static final String LONGITUDE_MIN = "longitude_min";

    public static final String LONGITUDE_MAX = "longitude_max";

    public static final String LATITUDE_MIN = "latitude_min";

    public static final String LATITUDE_MAX = "latitude_max";

    public static final String AVERAGE_ERROR = "average_error";

    public static final String COMPRESS_RATE = "compress_rate";

}
